package com.zy.baselib.tools;

import android.graphics.Bitmap;
import android.media.MediaMetadataRetriever;

public class MediaUtils {
    private MediaUtils() {
    }

    public static Bitmap getVideoThumb(String path) {
        MediaMetadataRetriever media = new MediaMetadataRetriever();
        media.setDataSource(path);
        return  media.getFrameAtTime();
    }
}
